package enumtest.staticAndnormalTest;

public class Animal {
	public static Animal Cat=new Animal(), Dog=new Animal();
	private static String a;
	static {//这个static代码块的位置不一样 结果会不一样
		System.out.println("static initializer");
		a = "111";
	}
	{
		System.out.println(this + " initializer");
	}
    Animal() {
        System.out.println(this + " constructor");
        System.out.println(a);
    }
    public static void main(String... s) {
        Animal animal = Animal.Cat;
    }
}
